package com.yxw.live_vod_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author xiexuxin
 * @date 2023-11-17
 */
@Data
@TableName("yx_video_coin")
@ApiModel("视频币明细实体类")
public class YxVideoCoinEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "video_coin_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键ID")
    private Long videoCoinId;

    @TableField("exchange_rules_id")
    @ApiModelProperty("兑换ID")
    private Long exchangeRulesId;

    @TableField("live_cost_id")
    @ApiModelProperty("直播费用id")
    private Long liveCostId;

    @TableField("shop_id")
    @ApiModelProperty("店铺id")
    private Long shopId;

    @TableField("shop_name")
    @ApiModelProperty("店铺名称")
    private String shopName;

    @TableField("shopkeeper_id")
    @ApiModelProperty("商户id")
    private Long shopkeeperId;

    @TableField("shopkeeper_name")
    @ApiModelProperty("商户名称")
    private String shopkeeperName;

    @TableField("type")
    @ApiModelProperty("类型")
    private Integer type;

    @TableField("detail")
    @ApiModelProperty("明细")
    private String detail;

    @TableField("amount")
    @ApiModelProperty("金额")
    private String amount;

    @TableField("transaction_num")
    @ApiModelProperty("交易单号")
    private String transactionNum;

    @TableField("trading_time")
    @ApiModelProperty("交易时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date tradingTime;

    @TableField("status")
    @ApiModelProperty("状态")
    private Integer status;

    @TableField("ip_address")
    @ApiModelProperty("ip地址")
    private String ipAddress;

    @TableField("remark")
    @ApiModelProperty("备注")
    private String remark;


}
